# -*- coding: utf-8 -*-
# @Software :   PyCharm
# @File     :   urls.py
# @Author   :   zhaolie
# @Contact  :   zhaolie1989@gmail.com
# @Time     :   2019/11/20 4:23 下午
# @Desc     :   None      

# here put the import lib
from django.urls import path, include, re_path
from .views import CourseListView, CourseDetailView, CourseInfoView, CommentsView, AddCommentView, VideoPlayView

urlpatterns = [

    # 课程机构首页
    re_path('list/', CourseListView.as_view(), name="course_list"),
    re_path('detail/(?P<course_id>\d+)/$', CourseDetailView.as_view(), name="detail"),
    re_path('info/(?P<course_id>\d+)/$', CourseInfoView.as_view(), name="info"),
    re_path('comment/(?P<course_id>\d+)/$', CommentsView.as_view(), name="comment"),
    path('add_comment/', AddCommentView.as_view(), name='add_comment'),
    re_path('video/(?P<video_id>\d+)/$', VideoPlayView.as_view(), name="video_play"),
]
